package com.zheng.mapper;


import com.zheng.entity.CompanyFinanceBillValidateRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 校验记录 Mapper
 *
 * @author ：Hose
 * @date 2025-03-17 10:47
 */
public interface CompanyFinanceBillValidateRecordMapper {
 
	/**
	 * 根据主键查询
	 * @param pk
	 * @return  CompanyFinanceBillValidateRecord
	 * @throws Exception 
	 * @date 2025-03-17 10:47
	 */
	CompanyFinanceBillValidateRecord findByPk(Long pk)throws Exception;
 
	/**
	 * 根据主键删除
	 * @param pk
	 * @return int
	 * @throws Exception 
	 * @date 2025-03-17 10:47
	 */
	int remove(Long pk)throws Exception;

	/**
	 * 更新校验状态
	 *
	 * @param billNo
	 * @param validatorName
	 * @param status
	 * @return
	 */
	int updateValidateStatus(@Param("billNo") String billNo, @Param("validatorName") String validatorName, @Param("status") Integer status);

	int batchSave(@Param("records") List<CompanyFinanceBillValidateRecord> records);
}